package com.woniuxy.three.pms.combo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.three.pms.bean.ComboBean;
import com.woniuxy.three.pms.combo.service.IComboService;
import com.woniuxy.three.pms.dao.ComboBeanMapper;
@Service
public class ComboServiceImpl implements  IComboService{
	@Autowired
	private ComboBeanMapper dao;
	@Override
	public int deleteByPrimaryKey(Integer id) {
		int number=dao.deleteByPrimaryKey(id);
		return number;
	}

	@Override
	public int insert(ComboBean record) {
		int number=dao.insert(record);
		return number;
	}

	@Override
	public int insertSelective(ComboBean record) {
		int number=dao.insertSelective(record);
		return number;
	}

	@Override
	public ComboBean selectByPrimaryKey(Integer id) {
		ComboBean bean=dao.selectByPrimaryKey(id);
		return bean;
	}

	@Override
	public int updateByPrimaryKeySelective(ComboBean record) {
		int number=dao.updateByPrimaryKeySelective(record);
		return number;
	}

	@Override
	public int updateByPrimaryKey(ComboBean record) {
		int number=dao.updateByPrimaryKey(record);
		return number;
	}

	@Override
	public List<ComboBean> findall() {
		List<ComboBean> list=dao.findall();
		return list;
	}

}
